package com.yxw.springcloud.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yxw.springcloud.mapper.StorageMapper;
import com.yxw.springcloud.model.Storage;
import com.yxw.springcloud.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yanxw
 * @since 2021-05-10
 */
@Service
public class StorageServiceImpl extends ServiceImpl<StorageMapper, Storage> implements StorageService {


    @Autowired
    private StorageMapper storageMapper;


    @Override
    public void decrease(Long productId, Integer count) {
        storageMapper.decrease(productId, count);
    }

}
